/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.easoftware.code.beans.cargas;

import com.excel2objects.common.excel.annotations.ExcelColumn;
import java.io.Serializable;
import java.util.Date;
import net.easoftware.code.beans.JpaEntityConverter;
import net.easoftware.code.beans.cargas.annotation.DataFilterConf;
import net.easoftware.code.beans.cargas.impl.AsOffFilter;
import net.easoftware.code.beans.jpa.AsoffStore;
import net.easoftware.code.error.EaError;

/**
 *
 * @author eliu
 */
@DataFilterConf(filter = AsOffFilter.class)
public class AsOff extends JpaEntityConverter implements Serializable {

    private Integer un = 9999;
    private Integer ln = 9999;
    @ExcelColumn(order = "1")
    private Integer compania;
    @ExcelColumn(order = "2")
    private String tdocto;
    @ExcelColumn(order = "3")
    private String nodocto;
    @ExcelColumn(order = "4")
    private Date fechaemision;
    @ExcelColumn(order = "5")
    private Date fechavencimiento;
    @ExcelColumn(order = "6")
    private Double montoorigen;
    @ExcelColumn(order = "7")
    private Double montopendiente;
    @ExcelColumn(order = "8")
    private Integer cliente;
    @ExcelColumn(order = "9")
    private String parent;
    @ExcelColumn(order = "10")
    private String nombre;
    @ExcelColumn(order = "11")
    private String mailing;
    private String name;
    @ExcelColumn(order = "12")
    private String codigoRep;
    @ExcelColumn(order = "13")
    private String repventas;
    @ExcelColumn(order = "14")
    private String zonaventas;
    @ExcelColumn(order = "15")
    private String segmento;
    @ExcelColumn(order = "16")
    private String bu;
    @ExcelColumn(order = "17")
    private String glOffset;
    @ExcelColumn(order = "18")
    private String producto;
    @ExcelColumn(order = "19")
    private String descproducto;
    @ExcelColumn(order = "20")
    private String catcode29;
    @ExcelColumn(order = "20")
    private String searchtype;
    @ExcelColumn(order = "22")
    private String pterm;
    @ExcelColumn(order = "23")
    private String code;
    @ExcelColumn(order = "24")
    private String paymentterms;
    @ExcelColumn(order = "25")
    private String creditlimit;
    @ExcelColumn(order = "26")
    private String ranking;
    @ExcelColumn(order = "27")
    private String credmessage;
    @ExcelColumn(order = "28")
    private String tempcrMessage;
    @ExcelColumn(order = "29")
    private String referencia;
    @ExcelColumn(order = "30")
    private String comentario;
    @ExcelColumn(order = "31")
    private String openOrders;

    @Override
    public Object getEntityBean() throws EaError {
        AsoffStore o = (AsoffStore) super.getEntityBean();

        if (this.getUn() != null) {
            o.setUnidadnegocio(this.getUn());
        }
        if (this.getLn() != null) {
            o.setLineanegocio(this.getLn());
        }

        return o;
    }

    public Integer getCliente() {
        return cliente;
    }

    public void setCliente(Integer cliente) {
        this.cliente = cliente;
    }

    public String getParent() {
        return parent;
    }

    public void setParent(String parent) {
        this.parent = parent;
    }

    public String getNombre() {
        return nombre;
    }

    public void setNombre(String nombre) {
        this.nombre = nombre;
    }

    public String getMailing() {
        return mailing;
    }

    public void setMailing(String mailing) {
        this.mailing = mailing;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCodigoRep() {
        return codigoRep;
    }

    public void setCodigoRep(String codigoRep) {
        this.codigoRep = codigoRep;
    }

    public String getSegmento() {
        return segmento;
    }

    public void setSegmento(String segmento) {
        this.segmento = segmento;
    }

    public String getBu() {
        return bu;
    }

    public void setBu(String bu) {
        this.bu = bu;
    }

    public AsOff() {
        this.setDestClassType(AsoffStore.class);
    }

    public String getGlOffset() {
        return glOffset;
    }

    public void setGlOffset(String glOffset) {
        this.glOffset = glOffset;
    }

    public String getProducto() {
        return producto;
    }

    public void setProducto(String producto) {
        this.producto = producto;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getRanking() {
        return ranking;
    }

    public void setRanking(String ranking) {
        this.ranking = ranking;
    }

    public String getReferencia() {
        return referencia;
    }

    public void setReferencia(String referencia) {
        this.referencia = referencia;
    }

    public String getComentario() {
        return comentario;
    }

    public void setComentario(String comentario) {
        this.comentario = comentario;
    }

    public String getOpenOrders() {
        return openOrders;
    }

    public void setOpenOrders(String openOrders) {
        this.openOrders = openOrders;
    }

    public Integer getCompania() {
        return compania;
    }

    public void setCompania(Integer compania) {
        this.compania = compania;
    }

    public String getTdocto() {
        return tdocto;
    }

    public void setTdocto(String tdocto) {
        this.tdocto = tdocto;
    }

    public String getNodocto() {
        return nodocto;
    }

    public void setNodocto(String nodocto) {
        this.nodocto = nodocto;
    }

    public Date getFechaemision() {
        return fechaemision;
    }

    public void setFechaemision(Date fechaemision) {
        this.fechaemision = fechaemision;
    }

    public Double getMontoorigen() {
        return montoorigen;
    }

    public void setMontoorigen(Double montoorigen) {
        this.montoorigen = montoorigen;
    }

    public Double getMontopendiente() {
        return montopendiente;
    }

    public void setMontopendiente(Double montopendiente) {
        this.montopendiente = montopendiente;
    }

    public String getRepventas() {
        return repventas;
    }

    public void setRepventas(String repventas) {
        this.repventas = repventas;
    }

    public String getZonaventas() {
        return zonaventas;
    }

    public void setZonaventas(String zonaventas) {
        this.zonaventas = zonaventas;
    }

    public String getDescproducto() {
        return descproducto;
    }

    public void setDescproducto(String descproducto) {
        this.descproducto = descproducto;
    }

    public String getCatcode29() {
        return catcode29;
    }

    public void setCatcode29(String catcode29) {
        this.catcode29 = catcode29;
    }

    public String getSearchtype() {
        return searchtype;
    }

    public void setSearchtype(String searchtype) {
        this.searchtype = searchtype;
    }

    public String getPterm() {
        return pterm;
    }

    public void setPterm(String pterm) {
        this.pterm = pterm;
    }

    public String getPaymentterms() {
        return paymentterms;
    }

    public void setPaymentterms(String paymentterms) {
        this.paymentterms = paymentterms;
    }

    public String getCreditlimit() {
        return creditlimit;
    }

    public void setCreditlimit(String creditlimit) {
        this.creditlimit = creditlimit;
    }

    public String getCredmessage() {
        return credmessage;
    }

    public void setCredmessage(String credmessage) {
        this.credmessage = credmessage;
    }

    public String getTempcrMessage() {
        return tempcrMessage;
    }

    public void setTempcrMessage(String tempcrMessage) {
        this.tempcrMessage = tempcrMessage;
    }

    public Date getFechavencimiento() {
        return fechavencimiento;
    }

    public void setFechavencimiento(Date fechavencimiento) {
        this.fechavencimiento = fechavencimiento;
    }

    public Integer getUn() {
        return un;
    }

    public void setUn(Integer un) {
        this.un = un;
    }

    public Integer getLn() {
        return ln;
    }

    public void setLn(Integer ln) {
        this.ln = ln;
    }
}
